package com.smartleanx.module.hrm.intergration;

import com.smartleanx.module.system.api.permission.PermissionApi;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import java.util.Collection;
import java.util.Set;

@Component
public class PermissionServiceProvider {

    @Resource
    private PermissionApi permissionApi;

    public Set<Long> getUserRoleIdListByRoleIds(Collection<Long> roleIds) {
     return  permissionApi.getUserRoleIdListByRoleIds(roleIds).getCheckedData();
    }
}
